import os
for i in xrange(1229):
    com = open("com.txt","w")
    com.write("read_library libs/basis.genlib\n")
    com.write("source my/script.for"+str(i)+'\n')
    com.write("quit")
    com.close()
    print i
    os.system("sis12.exe >>stats/stats"+str(i)+".txt <com.txt")